package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Folder;
import org.example.service.FolderService;
import org.example.mapper.FolderMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author ABin
* @description 针对表【folder】的数据库操作Service实现
* @createDate 2024-02-25 21:31:58
*/
@Service
public class FolderServiceImpl extends ServiceImpl<FolderMapper, Folder>
    implements FolderService{

    @Resource
    private FolderMapper folderMapper;
    @Override
    public List<Folder> search(String keyword, String startTime, String endTime, Long userId) {
        return folderMapper.search(keyword, startTime, endTime, userId);
    }

    @Override
    public List<Folder> listByUserId(Long userId) {
        return folderMapper.listByUserId(userId);
    }

    @Override
    public List<Folder> listByParentFolderId(Long userId,Long parentFolderId) {
        return folderMapper.listByParentFolderId(userId,parentFolderId);
    }
}




